import request from '@/utils/request'
const service = window.lwConfig.services.system + window.lwConfig.services.wecom

/**
 * 获取列表
 * @param {*} params
 */
export function getList(params) {
  return request({
    url: service + '/tenant/list',
    method: 'GET',
    params,
  })
}

/**
 * 添加/编辑
 * @param {*} params
 */
export function addObj(data) {
  return request({
    url: service + '/tenant/saveAndUpdate',
    method: 'POST',
    data,
  })
}